import ajax from '@/request/base.js'

// 用户登录
export const userLogin = (mobile, password) => ajax.post('/users/login', {mobile, password})

// 用户注册
export const userRegister = (mobile, password) => ajax.post('/users/register', {mobile, password})

// 注销用户
export const userLogout = ( ) => ajax.post('/users/logout')

// 获取用户信息
export const getUserInfo = () => ajax.get('/users/info')